package com.xiaodimall.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author wyc
 * @description
 * @ClassName RestTemplateBean
 * @date 2022/11/17 11:14
 */
@Configuration//标记当前类是一个配置类
public class RestTemplateBean {


    //让spring容器去管理对象
    @Bean
    public RestTemplate getRestTemplateBean(){

        return new RestTemplate();
    }
}
